package com.cgw.auth.entity;

import com.mybatisflex.annotation.Id;
import com.mybatisflex.annotation.Table;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.database.annotation.ProtectedField;
import org.gavin.core.annotation.FieldMask;

import java.io.Serializable;

/**
 *  实体类。
 *
 * @author gavin
 * @since 2024-01-05T13:34:24.8216206
 */
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@Table(value = "tb_account")
public class Account implements Serializable {

    @Id
    private Integer id;

    @ProtectedField
    @FieldMask(prefix = 2,suffix = 3)
    private String userName;

    private Integer age;
}
